package com.ailink.concurrent.atomic;

import java.util.concurrent.atomic.AtomicStampedReference;

public class TestAtomicStamped {
    public static void main(String[] args) {
        AtomicStampedReference<Integer> atomic = new AtomicStampedReference<>(1, 1);
        atomic.compareAndSet(atomic.getReference(), atomic.getReference() + 1, atomic.getStamp(), atomic.getStamp() + 1);
    }
}
